package com.ms.game.level.db;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.xpec.c4.db.model.log.basic.BasicTransactionLogModel;


@Entity
@Table(name="level_exp_log")
public class LevelLogModel extends BasicTransactionLogModel {

	private static final long serialVersionUID = -4818281722627158373L;

	/** account guid */
	private String accountId;

	/** player guid */
	private String playerId;

	/** player name */
	private String playerName;
	
	/** 遊戲館id */
	private String gameHallId;

	/** 遊戲館名 */
	private String gameHallName;

	/** 經驗 異動數值 */
	private BigDecimal expChangeValue;

	/** 經驗 異動前數值 */
	private BigDecimal expBeforeChange;

	/** 經驗 變更後數值 */
	private BigDecimal expAfterChange;
	
	/** vip等級 異動前數值 */
	private long levelBefore;

	/** vip等級 變更後數值 */
	private long levelAfter;

	/** 行為id */
	private int changeWay;

	/** 行為說明 */
	private String changeWayDesc;

	public String getAccountId() {
		return accountId;
	}

	public String getPlayerId() {
		return playerId;
	}

	public String getPlayerName() {
		return playerName;
	}

	@Column(precision = 19, scale = 2, columnDefinition = "DECIMAL(19,2) default 0.0")
	public BigDecimal getExpChangeValue() {
		return expChangeValue;
	}

	@Column(precision = 19, scale = 2, columnDefinition = "DECIMAL(19,2) default 0.0")
	public BigDecimal getExpBeforeChange() {
		return expBeforeChange;
	}

	@Column(precision = 19, scale = 2, columnDefinition = "DECIMAL(19,2) default 0.0")
	public BigDecimal getExpAfterChange() {
		return expAfterChange;
	}

	public long getLevelBefore() {
		return levelBefore;
	}

	public long getLevelAfter() {
		return levelAfter;
	}

	public int getChangeWay() {
		return changeWay;
	}

	public String getChangeWayDesc() {
		return changeWayDesc;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public void setPlayerId(String playerId) {
		this.playerId = playerId;
	}

	public void setPlayerName(String playerName) {
		this.playerName = playerName;
	}

	public void setExpChangeValue(BigDecimal expChangeValue) {
		this.expChangeValue = expChangeValue;
	}

	public void setExpBeforeChange(BigDecimal expBeforeChange) {
		this.expBeforeChange = expBeforeChange;
	}

	public void setExpAfterChange(BigDecimal expAfterChange) {
		this.expAfterChange = expAfterChange;
	}

	public void setLevelBefore(long levelBefore) {
		this.levelBefore = levelBefore;
	}

	public void setLevelAfter(long levelAfter) {
		this.levelAfter = levelAfter;
	}

	public void setChangeWay(int changeWay) {
		this.changeWay = changeWay;
	}

	public void setChangeWayDesc(String changeWayDesc) {
		this.changeWayDesc = changeWayDesc;
	}

	public String getGameHallId() {
		return gameHallId;
	}

	public String getGameHallName() {
		return gameHallName;
	}

	public void setGameHallId(String gameHallId) {
		this.gameHallId = gameHallId;
	}

	public void setGameHallName(String gameHallName) {
		this.gameHallName = gameHallName;
	}
	
}
